<div id="body-wrapper"> <!-- Wrapper for the radial gradient background -->
		<?php getAdminMenu();?>
	<div id="main-content"> <!-- Main Content Section with everything -->
		<div class="content-box"><!-- Start Content Box -->
		<div class="content-box-header">
			<h3>代理商修改</h3>
			<div class="clear"></div>
		</div> <!-- End .content-box-header -->
			<div class="content-box-content">
				<div>
					<form action="<?php echo site_url('/admin/agentDoUpdate');?>" onsubmit="return check();" method="post">
						<fieldset>
						<table>
							<tr>
								<td>创建时间：</td>
								<td  align="left"><input class="text-input large-input" type="text" id="create_time" name="create_time" value="<?php echo $lists->create_time;?>" /> </td>
							</tr>
							<tr>
								<td>代理商用户名：</td>
								<td  align="left">
									<input class="text-input large-input" type="text" id="agent_name" name="agent_name" value="<?php echo $lists->name?>" disabled />
									<input type="hidden" name="agent_id" value="<?php echo $lists->id;?>" />
								</td>
							</tr>
							<tr>
								<td>金额：</td>
								<td  align="left"><input class="text-input large-input" type="text" id="agent_amount" name="agent_amount" value="<?php echo $lists->amount;?>" /> </td>
							</tr>
							<tr>
								<td>代理商昵称：</td>
								<td  align="left"><input class="text-input large-input" type="text" id="agent_nickname" name="agent_nickname" value="<?php echo $lists->nickname;?>" /> </td>
							</tr>
							<tr>
								<td>密码：</td>
								<td  align="left"><input class="text-input mediu-input" type="password" id="agent_passwd" name="agent_passwd" value="" /><font color="Red"> (如果不修改密码，请置空)</font></td>
							</tr>
							<tr>
								<td>状态：</td>
								<td  align="left">
									<select id="agent_status" name="agent_status">
										<option value="0">正常</option>
										<option value="-1">禁用</option>
									</select>
								</td>
							</tr>
						</table>
							<p style="text-align:right;">
								<input class="button"  type="submit" value="修 改" />
							</p>
						</fieldset>
						<div class="clear"></div><!-- End .clear -->
					</form>
				</div> <!-- End #tab2 -->
			</div> <!-- End .content-box-content -->
		</div> <!-- End .content-box -->
		<div id="footer">
			<small> <!-- Remove this notice or replace it with whatever you want -->
					&#169; Powered by <a href="#">Leslee</a> | <a href="#">Top</a>
			</small>
		</div><!-- End #footer -->
	</div> <!-- End #main-content -->
</div>
<script>
function check()
 	{
 		var agent_name	= $.trim($("#agent_name").val());
 		var agent_nickname	= $.trim($("#agent_nickname").val());
		if(agent_name=='')
		{
			alert('代理商用户名不能为空');
			return false;
		}
		if(agent_nickname=='')
		{
			alert('代理商昵称不能为空');
			return false;
		}
		return true;
 	}
</script>